package com.kongjs.application.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@TableName("user_role")
@Entity
public class UserRole implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Id
    @TableField(value = "user_id")
    private Long userId;
    @Id
    @TableField(value = "role_id")
    private Long roleId;
}
